package com.yunsc.shop;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.scheduling.annotation.EnableScheduling;

// @SpringBootApplication(scanBasePackages= {"com.yunsc"})
@ComponentScan(
        basePackages = {"com.yunsc"},
        excludeFilters = {
                @ComponentScan.Filter(type = FilterType.REGEX, pattern = "com.yunsc.admin.*")
        }
)
@EnableScheduling // 开启定时任务
@SpringBootApplication
public class YunscShopApplication {

    public static void main(String[] args) {
        SpringApplication.run(YunscShopApplication.class, args);
    }

}
